currying in javascript interview questions